package com.ruoyi.supermarket.service;

import java.util.List;
import com.ruoyi.supermarket.domain.SupermarketSale;

/**
 * 销售信息Service接口
 * 
 * @author faye
 * @date 2024-05-27
 */
public interface ISupermarketSaleService 
{
    /**
     * 查询销售信息
     * 
     * @param saleId 销售信息主键
     * @return 销售信息
     */
    public SupermarketSale selectSupermarketSaleBySaleId(Long saleId);

    public SupermarketSale selectSupermarketSaleBySaleNum(Long saleNum);

    public List<SupermarketSale> findAll();

    /**
     * 查询销售信息列表
     * 
     * @param supermarketSale 销售信息
     * @return 销售信息集合
     */
    public List<SupermarketSale> selectSupermarketSaleList(SupermarketSale supermarketSale);

    /**
     * 新增销售信息
     * 
     * @param supermarketSale 销售信息
     * @return 结果
     */
    public int insertSupermarketSale(SupermarketSale supermarketSale);

    /**
     * 修改销售信息
     * 
     * @param supermarketSale 销售信息
     * @return 结果
     */
    public int updateSupermarketSale(SupermarketSale supermarketSale);

    /**
     * 批量删除销售信息
     * 
     * @param saleIds 需要删除的销售信息主键集合
     * @return 结果
     */
    public int deleteSupermarketSaleBySaleIds(Long[] saleIds);

    /**
     * 删除销售信息信息
     * 
     * @param saleId 销售信息主键
     * @return 结果
     */
    public int deleteSupermarketSaleBySaleId(Long saleId);
}
